package com.dy.design_pattern_study.composite_pattern.dome2.impl;

import com.dy.design_pattern_study.composite_pattern.dome2.Company;

/**
 * @CreateBy zhangdingyi
 * @Date 2023-04-12
 * @Content 人力资源部与财务部类　树叶节点
 */
public class HRDepartment extends Company {

    public HRDepartment(String name) {
        super(name);
    }

    @Override
    public void add(Company company) {}
    @Override
    public void remove(Company company) {}

    @Override
    public void display(int depth) {
        System.out.println(printStr(depth));
    }

    @Override
    public void lineOfDuty() {
        System.out.println("员工招聘培训 + " + name);
    }
}
